package v1

import (
	"github.com/gogf/gf/v2/frame/g"
	"hotgo/internal/model/input/apiin"
)

type SinglePageReq struct {
	g.Meta `path:"/singlePage" method:"get" tags:"recorder" summary:"单页"`
	Id     int `json:"id" v:"min:1#最小值不能低于1"  dc:"id：33是协议，34是常见问题"`
}

type SinglePageRes struct {
	Title   string `json:"title" dc:"标题"`
	Content string `json:"content" dc:"内容"`
}

type OrderListReq struct {
	g.Meta   `path:"/orderList" method:"get" auth:"true" tags:"recorder" summary:"订单列表"`
	Page     int `json:"page" example:"10" d:"1" v:"min:1#页码最小值不能低于1"  dc:"当前页码"`
	PageSize int `json:"page_size" example:"1" d:"10" v:"min:1|max:200#每页数量最小值不能低于1|最大值不能大于200" dc:"每页数量"`
	Status   int `json:"status"  dc:"状态：0未支付，1已支付，2全部"`
}

type OrderListRes struct {
	List       *[]apiin.OrderList `json:"list"`
	TotalCount int                `json:"totalCount"`
}
